//
//  ViewController.m
//  nifwjeifw
//
//  Created by K on 2019/1/8.
//  Copyright © 2019 7yao.top. All rights reserved.
//

#import "ViewController.h"
#import "kk_framework.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //
    Kratos_Options *option = [[Kratos_Options alloc]init];
    option.Kra_GameID = @"28";
    option.Kra_pkg = @"djm";
    option.Kra_CID = @"1117";
    option.Kra_appleIPAFundsURL = @"http://djmios.jswl.iossh.rydth5.com/djmios/payment";
    Kratos_Platform *platform =  [Kratos_Platform sharedKratos_Platform];
    [platform Kratos_ShowAccountViewController:self Kratos_delegate:self Kratos_options:option];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
- (IBAction)payClick:(id)sender {
    [[Kratos_Platform sharedKratos_Platform]Kratos_FuWithUID_Kra:@"453330" Kratos_price:@"0.01" Kratos_goods:@"60个元宝" Kratos_sid:@"8007" Kratos_attach:@"role=2621255|device=2" Kratos_appleMeiShu:@"com.sxj.6"];
    
}
- (IBAction)showlogin:(id)sender {
    [[Kratos_Platform sharedKratos_Platform]Kratos_showloginView];
}
- (IBAction)logoutClick:(id)sender {
    
    [[Kratos_Platform sharedKratos_Platform]kratos_logoutFromGame];
    
}


- (void)kratos_SDKInitSuccessed:(NSString *)info {
    
}

- (void)kratos_getUserInfo:(NSDictionary *)userinfo {
    NSLog(@"获取用户信息%@",userinfo);
}

- (void)kratos_logoutFromSDK {
    
}

@end
